import axios from '../utils/utils'

//登录请求API函数
export const loginApi = (params) => axios.post("/users/checkLogin", params)

//添加账号API函数
export const addusers = (params) => axios.post('/users/add', params)

//获取账号列表API函数
export const userList = (params) => axios.get('/users/list', { params })

//验证token是否过期
export const checktoken = (params) => axios.get('/users/checktoken', { params })

//删除账号
export const userdel = (params) => axios.get('/users/del', { params })

//批量删除
export const batchdel = (params) => axios.get('/users/batchdel', { params })

//检查旧密码
export const checkoldpwd = (params) => axios.get('/users/checkoldpwd', { params })

//修改密码
export const editpwd = (params) => axios.post('/users/editpwd', params)

//获取账号个人信息
export const accountinfo = (params) => axios.get('/users/accountinfo', { params })

//修改账号
export const edit = (params) => axios.post('/users/edit', params)


